package com.atguigu.springcloud.request;

import com.atguigu.springcloud.enums.EnumEO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * Created by luojie on 2018/9/7.
 */
@Data
@ApiModel("用户信息")
public class SaveEmployeeRequest {

    @NotBlank
    @ApiModelProperty(value = "用户名", required = true)
    private String name;

    private Integer age;

    @NotBlank
    @ApiModelProperty(value = "地址", required = true)
    private String address;

    @NotNull
    @ApiModelProperty(value = "性别", required = true)
    private EnumEO.Gender gender;

    @NotNull
    @ApiModelProperty(value = "是否可用", required = true)
    private EnumEO.Availability  availability;
}
